﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="gallery.aspx.cs" Inherits="AnaGiftedProject.WebForm11" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            color: #999999;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
<div class="bodycontent ">
    <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
    <br /><br />
    <asp:TextBox ID="txtDes" runat="server"></asp:TextBox>
    <br /><br />
    <asp:FileUpload ID="FileUpload1" runat="server" />
    <br /><br />
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click1" 
        Text="Button" />
    <br /><hr />
    <asp:DataList ID="DataList1" runat="server" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
        DataKeyField="Id" DataSourceID="EntityDataSource1" ForeColor="Black" 
        GridLines="Horizontal">
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        <ItemTemplate>
            <br />
            <span class="style1">اسم الصورة : </span>
            <asp:Label ID="GalleryImgNameLabel" runat="server" 
                Text='<%# Eval("GalleryImgName") %>' />
            <br />
            <span class="style1">وصف الصورة :</span>
            <asp:Label ID="GalleryImgDescriptionLabel" runat="server" 
                Text='<%# Eval("GalleryImgDescription") %>' />
            <br />
            GalleryImgTrack:
            <asp:Image ID="Image1" runat="server" 
                ImageUrl='<%# Eval("GalleryImgTrack", "galleryimg/ {0}") %>' />
            <br />
            UserId:
            <asp:Label ID="UserIdLabel" runat="server" Text='<%# Eval("UserId") %>' />
            <br />
            StoreId:
            <asp:Label ID="StoreIdLabel" runat="server" Text='<%# Eval("StoreId") %>' />
            <br />
            DateAdd: <br />
            Comments:
            <asp:Label ID="CommentsLabel" runat="server" Text='<%# Eval("Comments") %>' />
            <br />
            StoreImg:
            <asp:Label ID="StoreImgLabel" runat="server" Text='<%# Eval("StoreImg") %>' />
            <br />
            Groups:
            <asp:Label ID="GroupsLabel" runat="server" Text='<%# Eval("Groups") %>' />
            <br />
<br />
        </ItemTemplate>
        <SelectedItemStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=DatabaseGiftedEntities" 
        DefaultContainerName="DatabaseGiftedEntities" EnableDelete="True" 
        EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
        EntitySetName="GalleryImgs">
    </asp:EntityDataSource>
    <br />
    <hr />
    <br />
    <asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click">&gt;&gt;التالي</asp:LinkButton>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">السابق&gt;&gt;</asp:LinkButton>
    <br />
</div>
    </form>
</asp:Content>
